﻿Imports System.Runtime.InteropServices
Imports System.Runtime.Serialization

<DataContract()>
<Serializable()>
Public Class CatCuentasBE
    Private _Id As Integer
    Private _Rfc As String
    Private _Nombre As String
    Private _Correo As String
    Private _Telefono As String
    Private _IdServidor As Integer
    Private _NombreBd As String
    Private _Status As String
    Private _FechaRegistro As DateTime

    Public Enum EstatusCuenta
        Activa
        Inactiva
    End Enum

    <DataMember()>
    Public Property Rfc() As String
        Get
            Return _Rfc
        End Get
        Set(ByVal value As String)
            _Rfc = value.ToUpper.Trim
        End Set
    End Property

    <DataMember()>
    Public Property Nombre() As String
        Get
            Return _Nombre
        End Get
        Set(ByVal value As String)
            _Nombre = value
        End Set
    End Property

    <DataMember()>
    Public Property Correo() As String
        Get
            Return _Correo
        End Get
        Set(ByVal value As String)
            _Correo = value
        End Set
    End Property

    Public Property Id() As Integer
        Get
            Return _Id
        End Get
        Set(ByVal value As Integer)
            _Id = value
        End Set
    End Property

    <DataMember()>
    Public Property Telefono() As String
        Get
            Return _Telefono
        End Get
        Set(ByVal value As String)
            _Telefono = value
        End Set
    End Property

    Public Property IdServidor() As Integer
        Get
            Return _IdServidor
        End Get
        Set(ByVal value As Integer)
            _IdServidor = value
        End Set
    End Property

    Public Property NombreBd() As String
        Get
            Return _NombreBd
        End Get
        Set(ByVal value As String)
            _NombreBd = value
        End Set
    End Property

    <DataMember()>
    Public Property Status() As EstatusCuenta
        Get
            Return _Status
        End Get
        Set(ByVal value As EstatusCuenta)
            _Status = value
        End Set
    End Property

    Public Property FechaRegistro() As DateTime
        Get
            Return _FechaRegistro
        End Get
        Set(ByVal value As DateTime)
            _FechaRegistro = value
        End Set
    End Property

End Class
